<?php
class Groups extends CI_Model{
	
	function getActive(){
		$sql ="SELECT * FROM customer_group ";
		$Q = $this->db->query($sql);
        if ($Q->num_rows() > 0):
            foreach ($Q->result_array() as $row):
                $data[] = $row;
            endforeach;
        endif;
		$Q->free_result();
        return $data;
	}
    
}